<?xml version="1.0" encoding="UTF-8"?>
<p:beans xmlns:p="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://wwww.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.2.xsd ">
	<!-- 定义一个探险任务 -->
	<p:bean id="quest" class="com.netease.spring.ch1.knight.HolyGrailQuest"></p:bean>
	
	<!-- 定义一个骑士 -->
	<p:bean id="knight" class="com.netease.spring.ch1.knight.KnightOfTheRoundTable">
		<p:constructor-arg value="bedivere"/>
		<p:property name="quest" ref="quest"/>
	</p:bean>
	
	<!-- 定义一个切面 -->
	<p:bean id="minstrel" class="com.netease.spring.ch1.knight.Minstrel"/>
	
	<aop:config>
		<aop:aspect ref="minstrel">
			<aop:pointcut id="questPointcut" expression="execution(* *.embarkQuest(..))"
		</aop:aspect>
	</aop:config>
</p:beans>
